package dao;

import entity.Commodity;

import java.util.List;

public interface CommodityDao {
    List<Commodity> selectAllCommodities();

    List<Commodity> getCommodityByType(String type);

    void insertCommodity(Commodity commodity);

    Commodity getCommodityById(int id);

    List<String> getAllTypes();

    void deleteCommodityById(int id);
}
